if (!jsx3.lang.Class.forName("ux.cdb.admin.system.user.SelectModelDlg")) {
/**
 * Define the <code>tibco.spm.design.rule.builder.Builder</code> class.
 * This class inherit from <code>jsx3.gui.Dialog<code> GUI class.
 */
jsx3.Class.defineClass(
                "ux.cdb.admin.system.user.SelectModelDlg",
                jsx3.gui.Dialog,
                null,
                function (objRoot) {
                        /**
                         * This method will be called after UI file has deserialized.
                         */

                        /*objRoot.prototype.onAfterDeserialize = function(isBankMode) {
                                this.isBankMode = isBankMode;
                                if(this.isBankMode == "receipt"){
                                        this.getDescendantOfName("blockRole").setDisplay(jsx3.gui.Block.DISPLAYBLOCK, true);
                                }else if(this.isBankMode == "approve"){
                                        this.getDescendantOfName("blockBankRole").setDisplay(jsx3.gui.Block.DISPLAYBLOCK, true);
                                }
                        }

                        objRoot.prototype.selectMain = function() {
                                this.getDescendantOfName("radioCountryDuty").setGroupValue("countryDuty", true);
                                this.getDescendantOfName("radioCountryDuty").setEnabled(jsx3.gui.Form.STATEENABLED, true);
                                this.getDescendantOfName("radioProvTrans").setEnabled(jsx3.gui.Form.STATEENABLED, true);
                                this.getDescendantOfName("radioProvDuty").setEnabled(jsx3.gui.Form.STATEENABLED, true);
                        }

                        objRoot.prototype.selectNoMain = function() {
                                this.getDescendantOfName("radioCountryDuty").setGroupValue("countryDuty", true);
                                this.getDescendantOfName("radioCountryDuty").setEnabled(jsx3.gui.Form.STATEENABLED, true);
                                this.getDescendantOfName("radioProvTrans").setEnabled(jsx3.gui.Form.STATEDISABLED, true);
                                this.getDescendantOfName("radioProvDuty").setEnabled(jsx3.gui.Form.STATEDISABLED, true);
                        }
                     */
                        objRoot.prototype.onSubmit = function() {
                                if(this.getDescendantOfName("radio1").getSelected()==1){
                                  ux.cdb.admin.system.user.UserManage.RoleType=11000000
                                }else{
                                  ux.cdb.admin.system.user.UserManage.RoleType=1200;
                                }
                                this.doClose();
                                this.opener.onSelectMode();
                        }
                        
                });
}